package org.dromara.mall.domain.bo;

import org.dromara.mall.domain.TerMallOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 订单主信息业务对象 ter_mall_order
 *
 * @author xch
 * @date 2025-06-27
 */
@Data
@AutoMapper(target = TerMallOrder.class, reverseConvertGenerate = false)
public class TerMallOrderBo {

    /**
     *
     */
    private String id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 用户ID
     */
    private Long userId;



    /**
     * 订单状态(0=待发货,1=已发货,2=已完成,3=已取消)
     */
    private Integer orderStatus;

    /**
     * 收货人（冗余字段）
     */
    private String consignee;

    /**
     * 收货电话（冗余字段）
     */
    private String mobile;

    /**
     * 收货地址（冗余字段）
     */
    private String address;

    /**
     * 自提点ID
     */
    private Long pickupPointId;

    /**
     * 自提码
     */
    private String pickupCode;

    private Long cartId;
    private Long productId;

    private Integer revenue;

    private Integer quantity;

    private Integer totalPrice;
    private Integer prepayAmount;
    private String couponId;
    private Integer couponPrice;
    private String paymentMethod;
    private String openId;
    private String pickupPoint;
    private Integer isCart;
 }
